package com.cloud.util;

import java.io.IOException;
import java.util.Properties;

//Class that extracts properties from the prop file.

public class PropertyLoader {

    public static String loadProperty(String name) {

        String value = "";

        Properties props = new Properties();

        try {
            props.load(PropertyLoader.class.getResourceAsStream("/application.properties"));
        } catch (IOException e) {
            e.printStackTrace();
        }

        if (name != null) {
            value = props.getProperty(name);
        }

        return value;

    }

}










//private static final String PROP_FILE = "/application.properties";